/*
 * @Author: yangni 920556271@qq.com
 * @Date: 2023-12-18 17:04:15
 * @LastEditors: yangni 920556271@qq.com
 * @LastEditTime: 2023-12-19 17:23:09
 * @FilePath: /yt-devops/lib/pages/tasks/component/pic_gallery_widget.dart
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import 'package:flutter/material.dart';
import 'package:flutter/src/widgets/framework.dart';
import 'package:flutter/src/widgets/placeholder.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
import 'package:yt_devops/components/log_utils.dart';
import 'package:yt_devops/components/network_image_sll.dart';
import 'package:yt_devops/components/select_phone_widget.dart';
import 'package:yt_devops/resources/resources.dart';
import 'package:yt_devops/resources/str_res_keys.dart';
import 'package:yt_devops/styles/styles.dart';
import 'package:yt_devops/utils/extensions.dart';

class PicGalleryWidget extends StatefulWidget {
  final List<String> pics;
  const PicGalleryWidget(this.pics, {super.key});

  @override
  State<PicGalleryWidget> createState() => _PicGalleryWidgetState();
}

class _PicGalleryWidgetState extends State<PicGalleryWidget> {
  @override
  Widget build(BuildContext context) {
    return Container(
      padding: EdgeInsets.only(bottom: 16.h),
      child: SelectPhotoWidget(
        widget.pics,
        false,
        10,
        (list) {},
        titleString: ResKey.uploadPic.tr,
        decString: '     ',
        padding: EdgeInsets.zero,
      ),
    );
  }
}
